package com.xingfly.model;

import javax.persistence.*;

/**
 * 我关注的用户
 * Created by SuperS on 2016/11/29.
 */
@Entity
@Table(name = "xf_following")
public class Following extends BaseModel {

    @JoinColumn(name = "user_id", referencedColumnName = "id")
    @ManyToOne(optional = false, targetEntity = User.class)
    private User user;
    @JoinColumn(name = "following_user_id", referencedColumnName = "id")
    @ManyToOne(optional = false, targetEntity = User.class)
    private User followingUser;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getFollowingUser() {
        return followingUser;
    }

    public void setFollowingUser(User followingUser) {
        this.followingUser = followingUser;
    }
}
